<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    .container {
      width: 400px;
      height: 300px;
      background-size: cover;
      position: relative;
      margin: 80px auto;
      overflow: hidden;
    }

    .container img {
      width: 400px;
      height: 300px;
      background-size: cover;
    }

    .container::before {
      content: "";
      background-color: rgba(0, 0, 0, 0.5);
      position: absolute;
      width: 600px;
      height: 260px;
      left: -100px;
      top: 20px;
      transform: rotate(30deg) scaleY(0);
      transition: transform 0.5s ease-in-out;
    }

    .container:hover::before {
      transform: rotate(30deg) scaleY(1);
    }

    .container .content {
      width: 220px;
      height: 150px;
      position: absolute;
      left: 80px;
      top: 50px;
      color: white;
      font-weight: 300;
      font-size: 13px;
      z-index: 1;
      transform: rotate(30deg) scaleY(0);
      transition: transform 0.5s ease-in-out;
    }

    .container:hover .content {
      transform: rotate(0) scaleY(1);
    }

    .container .content p:first-child {
      font-size: 16px;
    }
  </style>
  <body>
    <div class="container">
      <img src="/src/img/transform/rotate1.png" alt="" />
      <div class="content">
        <p>风景如画</p>
        <p>风景如画是“风景”和“如画”的连用，意思是美丽的景色如画出来的一样，比喻景色像图画一样呈现在眼前。</p>
      </div>
    </div>
  </body>
</html>
